package com.bsb.biz.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bsb.base.mapper.BsbFirmMovingMapper;
import com.bsb.base.model.BsbFirmMoving;
import com.bsb.base.model.BsbFirmMovingExample;

@Service
public class BsbFirmMovingService{
	
	@Resource
	private BsbFirmMovingMapper bsbFirmMovingMapper;
	
	public void addBsbFirmMoving(BsbFirmMoving bsbFirmMoving) {
		bsbFirmMovingMapper.insertSelective(bsbFirmMoving);
	}
	
	public void delBsbFirmMovingByUuid(String uuid) {
		bsbFirmMovingMapper.deleteByPrimaryKey(uuid);
	}
	
	public void updateBsbFirmMoving(BsbFirmMoving bsbFirmMoving) {
		bsbFirmMovingMapper.updateByPrimaryKeySelective(bsbFirmMoving);
	}
	
	public BsbFirmMoving getBsbFirmMovingByUuid(String uuid) {
		return bsbFirmMovingMapper.selectByPrimaryKey(uuid);
	}
	
	public List<BsbFirmMoving> getPageBsbFirmMoving(BsbFirmMovingExample bsbFirmMovingExample) {
		return bsbFirmMovingMapper.selectPage(bsbFirmMovingExample);
	}
	
	public int countBsbFirmMoving(BsbFirmMovingExample bsbFirmMovingExample) {
		return bsbFirmMovingMapper.countByExample(bsbFirmMovingExample);
	}
}
